package com.zxcl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxcl.domain.Sku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SkuMapper extends BaseMapper<Sku> {

    /**
     * 修改库存
     *
     * @param skuId
     * @param count
     * @return
     */
    int updateStock(@Param("skuId") Long skuId, @Param("count") Integer count);


}